/* eslint valid-jsdoc: "off" */

'use strict';

/**
 * @param {Egg.EggAppInfo} appInfo app info
 */
module.exports = appInfo => {
  /**
   * built-in config
   * @type {Egg.EggAppConfig}
   **/
  const config = exports = {};

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_123456';

  // add your middleware config here
    config.middleware = [];
    
    // post 请求配置项
    config.security = {
        csrf: {
            enable: false
        }
    }

    config.view ={
        defaultViewEngine:'nunjucks'
    }

    config.mysql = {
        // 单数据库信息
        client: {
            // host
            host: 'localhost',
            // 端口号
            port: '3306',
            // 用户名
            user: 'root',
            // 密码
            password: '123456',
            // 数据库名称
            database:'xiaozhoubaogao'
        },
        // 是否加载到app上，默认开启
        app: true,
        // 是否加载到agent上，默认关闭
        agent: false
    }

  // add your user config here
  const userConfig = {
    // myAppName: 'egg',
  };

  return {
    ...config,
    ...userConfig,
  };
};
